import API from "@/utils/request";

/**
 * 商品
 * @param {Object} data 参数
 */

// 商品列表
export const UPALLShop = data => {
  return API("sp/v1.Shop/upall", data);
};
export const DOWNALLShop = data => {
  return API("sp/v1.Shop/downall", data);
};
export const DELALLShop = data => {
  return API("sp/v1.Shop/delall", data);
};
export const GOODSLISTShop = data => {
  return API("sp/v1.Shop/goodslist", data);
};
export const RECOMMENDGOODSShop = data => {
  return API("sp/v1.Shop/recommendGoods", data);
};
export const SETSORT = data => {
  return API("sp/v1.Shop/setSort", data);
};
//  商品分类
export const SETSHOPGOODSTYPE = data => {
  return API("sp/v1.Shop/setShopGoodsType", data);
};
export const GETLISTShopClass = data => {
  return API("sp/v1.Shop/getlist", data);
};
export const DELETE = data => {
  return API("sp/v1.Shop/delete", data);
};
export const ONLYSHOWONE = data => {
  return API("sp/v1.Shop/onlyShowOne", data);
};
export const SHOWAPPONE = data => {
  return API("sp/v1.Shop/showAppOne", data);
};

// 商品录入
export const SETGOODS = data => {
  return API("sp/v1.Shop/setGoods", data);
};
export const TAGLIST = data => {
  return API("sp/v1.Shop/tagList", data);
};
export const SETTAG = data => {
  return API("sp/v1.Shop/setTag", data);
};
export const DELTAG = data => {
  return API("sp/v1.Shop/delTag", data);
};
export const GOODSINFO = data => {
  return API("sp/v1.Shop/goodsinfo", data);
};
export const SHOWDISTRIBUTIONCONFIGShop = data => {
  return API("sp/v1.Shop/showDistributionConfig", data);
};
